import request from "../utils/request";


export function getProgress(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/getProgress',
        method: 'post',
        data
    });
};

export function getIntegrationDebugList(data) {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/list',
        method: 'post',
        data
    });
};

export function getProgressList(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/getProgress',
        method: 'post',
        data
    });
};
export function completeCurrentNodeApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/completeCurrentNode ',
        method: 'post',
        data
    });
};
export function completeSubmitFilesApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/submitFiles',
        method: 'post',
        data
    });
};





export function uploadFileApi(data,url) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/file/uploadIntegrationDebugFile'+url,
        method: 'post',
        headers:{
            'Content-Type': 'multipart/form-data;charset=UTF-8'
        },
        data
    });
};

export function getCheckFilesApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/getCheckFiles',
        method: 'post',
        data
    });
};
export function downloadFileApi(params) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/file/downloadFile',
        method: 'get',
        params:{
            ...params
        },
    });
};
export function batchCreateApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/batchCreate',
        method: 'post',
        data
    });
};
export function deleteFilesApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/deleteFiles',
        method: 'post',
        data
    });
};


export function repairRecordSearchApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/repairRecord/queryByPage',
        method: 'post',
        data
    });
};

export function integrationDebugEditApi(data) {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        baseURL: 'carmanage',
        url: '/web/integrationDebug/edit',
        method: 'post',
        data
    });
};





export function repairCreateApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/repairRecord/batchCreate',
        method: 'post',
        data
    });
};


export function updateProblemLevelApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/repairRecord/updateProblemLevel',
        method: 'post',
        data
    });
};



export function taskAssignApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/repairRecord/taskAssign',
        method: 'post',
        data
    });
};


export function taskFinishApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/repairRecord/taskFinish',
        method: 'post',
        data
    });
};


export function taskDispatchApi(data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/repairRecord/taskDispatch',
        method: 'post',
        data
    });
};